2D HUD Viewer.

,      , 2D Viewer    (""  " ")  (""    " "),   ( )    ...


--- .

    2  3 ,    ,  ,     .   2D HUD Viewer   " ".

            .

   .

  -  :
 - /    -   2  3;
 -                     -   "6";
 -                      -   "5";
 -                   -   "4".

      .
       .


--- :

1.  .
2.  :
-  "system.ltx",    "#include..."  :
#include "misc\d2hud.ltx"
-  "ui_custom_msgs.xml",   ,      :
#include "ui\ui_custom_msgs_2dhud.xml"
-   "bind_stalker.script"   "actor_binder:update()"   ,   "end",  :
d2hud.update()


---   :

1.    2DHUD     "d2hud";

2.    2DHUD,  ""  ""      ;

3.  -      "dds", ,     "textures\d2hud"         .

4.  -      , ,     "scripts"         .


---   2DHUD .

1.      (, , ...) ;
2.     ;
3.   ,   ,  ,    .  : _1, _2  .. : "" -    ,  ,    - "  ".
4.     "textures\docs";
5.       ...
6.             .
7.              ,      ,   . 


---   2DHUD-a:

;  ,     2DHUD
d2hud = true

;    ,  
pages = ... -   :
pos_x = ... -  X   
pos_y = ... -  Y   
d_x = ... -   X
d_y = ... -   Y

;  ,           
monoimage = true/false

;  
img_path = ... -  "auto",   textures\d2hud

   - ()      "ui_custom_msgs.xml".


---        2DHUD-.

1.        : on(), off(), update(), menu().

2.  on() -    .  d2hud      .       .     1    ,   - nil.

3.  off() -    .  d2hud      .        .

4.  update() -      .  d2hud       bind_stalker.update().        .

5.  menu() -    ,  d2hud      "4".       .


      3 ,      2 :

 "object_with_2dhud.script"

function update(page)
	if page == 1 then ...
	elseif page == 3 then ...
	end
end

function menu(page)
	if page == 1 then ...
	elseif page == 2 then ... 
	elseif page == 3 then ...
	end
end

function on(page)
	if page == 1 then ... return 1
	elseif page == 2 then ... return nil
	elseif page == 3 then ... return 1
	end
end

function off(page)
	if page == 1 then ...
	elseif page == 2 then ...
	elseif page == 3 then ...
	end
end
